{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>管理员回复信息表</title>
    <script src="{% static "js/jquery.min.js" %}"></script>
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">


</head>
<body>

<table class="table table-striped">
    <caption>条纹表格布局</caption>
    <thead>
    <tr>
        <th>用户名</th>
        <th>反馈信息</th>
        <th>反馈时间</th>
        <th>回复内容</th>
        <th>回复时间</th>
        <th>回复人</th>
    </tr>
    </thead>
    <tbody>
    {% for r in res %}
        <tr>
            <td>{{ r.user_id }}</td>
            <td>{{ r.content }}</td>
            <td>{{ r.submit_time }}</td>
            <td>{{ r.reply }}</td>
            <td>{{ r.reply_time }}</td>
            <td>{{ r.replyer }}</td>
            <td class="glyphicon glyphicon-edit"><input type="button"
                                                        onclick="send_input_reply('{{ r.id }}{{ r.user_id }}')"
                                                        value="回复"></td>
        </tr>
    {% endfor %}
    </tbody>
</table>
<form action="/form/fees/" method="post">
    <span>回复&#x3000</span><input id="conte" name="hah" value="" readonly>
    <textarea type="text" name="playse"> </textarea><br>
    &#x3000 &#x3000&#x3000<span>由管理员：</span> <input href="a1" name="supname" value="{{ user.sup_name }}" readonly>
    <input type="submit"
           value="提交回复"> <a href="/form/logout/">退出 </a>
    {% csrf_token %}
</form>

</body>
<script type="text/javascript">
    function send_input_reply(name) {
        {#        $("#ids").html(name[0]);#}
        $("#conte").attr('value', name)


    }
</script>
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</html>